//
//  LBImageFetcher.h
//  look.book
//
//  Created by Chih Yuan Liu on 3/18/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "CTPBaseUrlFetcher.h"

@class LBImageFetcher;

@protocol LBImageFetcherDelegate
- (void)fetcherBegin:(LBImageFetcher*)sender;
- (void)fetcherEnd:(LBImageFetcher*)sender;
- (void)fetcherSucceeded:(LBImageFetcher*)sender data:(NSData*)data;
- (void)fetcherFailed:(LBImageFetcher*)sender;
@end

@interface LBImageFetcher : CTPBaseUrlFetcher {
	NSObject<LBImageFetcherDelegate> *delegate;
}

-(void)getDataFromLB:(NSString*) url;

@property (readwrite, retain) NSObject<LBImageFetcherDelegate> *delegate;

@end
